import { createApp } from 'vue'
import App from './App.vue'
import axios from 'axios'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
const app = createApp(App)

axios.get('/config.json').then((res)=>{
    app.config.globalProperties.$config=res.data
})
export const globals=app.config.globalProperties

// 配置axios
// axios.defaults.baseURL = 'http://localhost:8080' // SpringBoot后端地址
// app.config.globalProperties.$axios = axios
app.use(ElementPlus)
app.mount('#app')